<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>个人博客</title>
</head>
<style>
  * {
    margin: 0;
    padding: 0;
  }
  body {
    background: #000;
  } 
  /* 顶部导航 */
  .nav {
    width: 100%;
    height: 50px;
    background-color: aliceblue;
    display: flex;
    justify-content: space-around;
    align-items: center
  }
  .nav a {
    text-decoration: none;
    color: black;
  }
  /* 主体 */
  .main {
    margin: 0 auto;
    margin-top: 10px;
    width: 90%;
    /* display: grid; */
    /* grid-template-columns: 1fr 2fr 1fr; */
    /* height: auto;
    display: flex;
    justify-content: space-around; */
  }
  .left {
    /* display: inline-block; */
    width: 20%;
    /* margin-right: 10px; */
    height: auto;
    background-color: #fff;
    float: left;
    border-radius: 4px;
    padding: 20px;
    box-sizing: border-box;
  }
  .author_box {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
  }
  .author_img {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    margin-right: 10px;
  }
  .code_year {
    color: #999;
  }
  .article_nums {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .article_nums li {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  .article_nums li div:nth-child(1) {
    font-size: 16px;
    color: #666;
  }
  .article_nums li div:nth-child(2) {
    font-size: 14px;
  }
  /* 0.5px细线 */
  .line {
    width: 100%;
    border-top: 1px solid #ccc;
    transform: scaleY(0.5);
  }
  .icon_list {
    flex-wrap: wrap;
    display: flex;
    width: 100%;
    /* justify-content: space-between; */
    /* align-items: center; */
  }
  .icon {
    width: calc( 100% / 7 );
    height: 40px;
    margin: 0px 0 0 0 ;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  .img_box {
    width: calc(100% - 10px);
    height: 30px;
    background-color: antiquewhite;
    text-align: center;
    line-height: 30px;
  }
  /* 左侧按钮组 */
  .btn_group {
    margin-top: 10px;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .btn_group .btn {
    width: 45%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border: #ccc solid 1px;
    border-radius: 20px;
    color: #666;
    font-size: 14px;
    cursor:pointer;
  }
  .btn_group .btn:hover {
    border: 1px solid #666;
  }
  .center_box {
    /* display: inline-block; */
    /* margin: 0 auto; */
    margin-left: 10px;
    width: calc(60% - 20px) ;
    height: auto;
    background-color: #fff;
    float: left;
    border-radius: 2px;
    padding: 15px;
    box-sizing: border-box;
  }
  .label_line {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    background-color: #efefef;
    margin: 10px 0;
    /* vertical-align: middle; */
  }
  .label_info {
    display: flex;
    align-items: center;
    position: relative;
  }
  .myself_label {
    width: 50px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #eea5a5;
    border-radius: 4px;
    color: aliceblue;
  }
  .author_name {
    margin-left: 10px;
  }
  .read_data span {
    margin-left: 10px;
  }
  .copyright {
    position: absolute;
    right: 10px;
    color: #999;
  }
  .class_label {
    margin-top: 4px;
    padding-left: 10px;
  }
  .class_label span:nth-child(1) {
    color: #999;
  }
  .class_label span:nth-child(2) {
    background-color: #fff;
    color: #547dee;
    border: #ddd solid 1px;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 14px;
    
  } 
  .content {
    width: 100%;
    height: auto;
  }
  .right {
    /* display: inline-block; */
    width: 20%;
    /* height: 500px; */
    background-color: #fff;
    float: right;
  }
  .title {
    padding: 10px;
    font-weight: 600;
  }
  .article_list_box {
    padding: 12px 6px 12px 12px;
  }
  .article_list {
   
    color: #333;
    display: flex;
    flex-direction: column;
  }
  .article_title {
    /* height: 25px; */
    line-height: 22px;
    font-size: 16px;
    margin-bottom: 10px;
    cursor: pointer;
  }
  .article_title:hover {
    color: rgb(221, 14, 14)
  }
  .year_nums {
    margin-top: 10px;
    line-height: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 14px;
    color: #4a4d52;
  }
</style>
<body>
  <!-- 1. 个人博客页面 -- 2h 12:50- 14:50 -->

  <!-- 博客顶部导航 -->
   <div class="nav">
     <a href="#">首页</a>
     <a href="#">关于我</a>
     <a href="#">文章</a>
     <a href="#">留言</a>
     <a href="#">更多</a>
   </div>
   <!-- 主体 -->
   <div class="main">
    <!-- 左边内容 -->
    <div class="left">
      <!-- 作者信息 -->
      <div class="author_box">
        <img class="author_img" src="https://profile-avatar.csdnimg.cn/9e1feae188d049e2911f06a82beded52_qq_45503196.jpg!1" alt="" srcset="">
        <div class="author_name">
          <span>小王</span>
          <div class="code_year">码龄6年</div>
        </div>
      </div>
      <!-- 文章数据 -->
      <ul class="article_nums">
        <li>
          <div>98</div>
          <div>原创</div>
        </li>
        <li>
          <div>98</div>
          <div>周排名</div>
        </li>
        <li>
          <div>98</div>
          <div>总排名</div>
        </li>
        <li>
          <div>98</div>
          <div>访问</div>
        </li>
        <li>
          <div>lv5</div>
          <div>等级</div>
        </li>
      </ul>
      <div class="line"></div>
      <ul class="article_nums">
        <li>
          <div>98</div>
          <div>原创</div>
        </li>
        <li>
          <div>98</div>
          <div>周排名</div>
        </li>
        <li>
          <div>98</div>
          <div>总排名</div>
        </li>
        <li>
          <div>98</div>
          <div>访问</div>
        </li>
        <li>
          <div>lv5</div>
          <div>等级</div>
        </li>
      </ul>
      <div class="icon_list">
        <div class="icon"> <div class="img_box">勋章</div> </div>
        <div class="icon"> <div class="img_box">勋章</div> </div>
        <div class="icon"> <div class="img_box">勋章</div> </div>
        <div class="icon"> <div class="img_box">勋章</div> </div>
        <div class="icon"> <div class="img_box">勋章</div> </div>
        <div class="icon"> <div class="img_box">勋章</div> </div>
        <div class="icon"> <div class="img_box">勋章</div> </div>
        <div class="icon"> <div class="img_box">勋章</div> </div>
        <div class="icon"> <div class="img_box">勋章</div> </div>
        <div class="icon"> <div class="img_box">勋章</div> </div>
        <div class="icon"> <div class="img_box">勋章</div> </div>
        <div class="icon"> <div class="img_box">勋章</div> </div>
        <!-- <img src="https://csdnimg.cn/release/blogv2/dist/pc/img/WeChatQRCode.png" alt="" srcset=""> -->
      </div>
      <div class="btn_group">
        <div class="btn">私信</div>
        <div class="btn">关注</div>
      </div>
    </div>
    <!-- 中间内容 -->
    <div class="center_box">
      <h1>如何使用a标签下载文件</h1>
      <div class="label_line">
        <div class="label_info"> 
          <div class="myself_label">原创</div>
          <div class="author_name">小王</div>
          <div class="read_data">
            <span>已于2022-12-12 13:66:52 修改</span>
            <span>阅读量5万</span>
            <span>收藏量62</span>
            <span>点赞数62</span>
          </div>
          <div class="copyright">版权</div>
        </div>
        <div class="class_label">
          <span>文章标签：</span>
          <span>前端</span>
        </div>
      </div>
      <div class="content">
        <h2>这是标题</h2>
        <p>这是正文这是正文这是正文这是正文这是正文这是正文这是正文这是正文这是正文这是正文</p>
      </div>
    </div>
    <!-- 右边内容 -->
    <div class="right">
      <div class="title">最新文章</div>
      <div class="line"></div>
      <div class="article_list_box">
        <div class="article_list">
          <div class="article_title">如何使用a标签下载文件如何使用a标签下载文件如何使用a标签下载文件</div>
          <div class="article_title">如何使用a标签下载文件</div>
          <div class="article_title">如何使用a标签下载文件如何使用a标签下载文件</div>
        </div>
        <div class="line"></div>
        <div class="year_nums">
          <div>
            <span>2016年</span>
            <span>12篇</span>
          </div>
          <div>
            <span>2016年</span>
            <span>12篇</span>
          </div>
          <div>
            <span>2016年</span>
            <span>12篇</span>
          </div>
          <div>
            <span>2016年</span>
            <span>12篇</span>
          </div>
        </div>
      </div>
    </div>
   </div>
<!-- -     设计一个包含博客标题、作者头像、博客文章列表的页面。

-     每篇文章有标题、发布日期和简短的摘要。

-     使用不同的字体、颜色和样式来区分各个部分。 -->
  
</body>
</html>